home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xarchie-2.0.9 / stringdefs.h < prev    next >
C/C++ Source or Header  |  1995-06-18  |  1KB  |  42 lines

  1. /*
  2.  * stringdefs.h : Include defs of string functions
  3.  *
  4.  * George Ferguson, ferguson@cs.rochester.edu, 23 Apr 1993.
  5.  *
  6.  * This is based on the example from the Autoconf manual.
  7.  */
  8.  
  9. #include "config.h"
  10.  
  11. #if STDC_HEADERS || HAVE_STRING_H
  12. # include <string.h>
  13. /* An ANSI string.h and pre-ANSI memory.h might conflict.  */
  14. # if !STDC_HEADERS && HAVE_MEMORY_H
  15. #  include <memory.h>
  16. # endif /* not STDC_HEADERS and HAVE_MEMORY_H */
  17. # ifndef index
  18. #  define index strchr
  19. # endif
  20. # ifndef rindex
  21. #  define rindex strrchr
  22. # endif
  23. # ifndef bcopy
  24. #  define bcopy(s, d, n) memcpy ((d), (s), (n))
  25. #  define bcmp(s1, s2, n) memcmp ((s1), (s2), (n))
  26. #  define bzero(s, n) memset ((s), 0, (n))
  27. # endif
  28. #else /* not STDC_HEADERS and not HAVE_STRING_H */
  29. # include <strings.h>
  30. /* memory.h and strings.h conflict on some systems.  */
  31. #endif /* not STDC_HEADERS and not HAVE_STRING_H */
  32.  
  33. #ifndef HAVE_STRCASECMP
  34. #if NeedFunctionPrototypes || defined(FUNCPROTO)
  35. #include <sys/types.h>
  36. extern int strcasecmp(const char *, const char *);
  37. extern int strncasecmp(const char *, const char *, size_t);
  38. #else
  39. extern int strcasecmp(),strncasecmp();
  40. #endif
  41. #endif
  42.